package com.yt.lxh.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OrderStatus {
    NOT_PAY(0, "订单未支付"),
    SUCCESS_PAY(1, "支付成功"),
    CANCEL_PAY(2, "支付取消"),
    REFUND_PROCESSING(3, "退款中"),
    REFUND_SUCCESS(4, "退款成功"),
    REFUND_FAIL(5, "退款失败"),
    CLOSE_PAY(6, "支付已关闭");

    @EnumValue
    private final Integer code;

    @JsonValue
    private final String type;
}
